import React, { useContext } from "react";
import { MobXProviderContext, useObserver } from 'mobx-react';

function RenderItem() {

  const { storeOne } = useContext(MobXProviderContext)

  return useObserver(() => (
    <div>
      <h1>{storeOne.testValue}</h1>
      <button onClick={() => { storeOne.finsh('cccc') }}>改变</button>
    </div>
  ))
}

export default RenderItem;
